home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / misc / charmap / install français < prev    next >
Text File  |  1999-11-30  |  3KB  |  93 lines

  1. ; $VER:Installation script for CharMap
  2. ; Author: Adapted from Michael Link's script
  3. ; Begin       : 19/11/99
  4.  
  5. (set DIRHELP (cat "Vous devez entrez le nom d'un répertoire où sera installé\n"
  6.           "CharMap.\n\n"
  7.           "Si vous voulez que cet outil soit disponible à tout moment\n"
  8.           "à chaque redémarrage de la machine, entrez comme nom de\n"
  9.           "répertoire \"SYS:WBStartup\", ce qui est le répertoire par\n"
  10.           "défaut. Vous pouvez aussi entrez \"SYS:Tools/Commodities\",\n"
  11.           "si vous ne voulez l'utilisez que de temps en temps où alors\n"
  12.           "si vous voulez le lancer depuis l'user-startup.\n"
  13.          )
  14. )
  15.  
  16. (set DIR_REQUEST (cat "Entrez le répertoire de destinnation pour installer CharMap")
  17. )
  18.  
  19. (set WHICH_HOTKEY (cat "\n\nAvec quelle combinaison de touche, la fenêtre\n"
  20.                        "sera réouverte si elle a été cachée ?"
  21.           )
  22. )
  23.  
  24.  
  25. (set vernum (getversion "locale.library" (resident)))
  26. (set ver (shiftright vernum 16))
  27.  
  28.  
  29. ; ***********************************************************************
  30. ; *                                                                     *
  31. ; * Request for the destination directory                               *
  32. ; *                                                                     *
  33. ; ***********************************************************************
  34.  
  35. (set DIR (askdir (prompt DIR_REQUEST)
  36.                  (help DIRHELP)
  37.                  (default "SYS:WBStartup")
  38.          )
  39. )
  40.  
  41. (set @default-dest DIR)
  42.  
  43.  
  44. ; ***********************************************************************
  45. ; *                                                                     *
  46. ; * Asking for the tool-types                                           *
  47. ; *                                                                     *
  48. ; ***********************************************************************
  49.  
  50. (set HOTKEY (askstring    (prompt WHICH_HOTKEY)
  51.             (help @askstring-help)
  52.             (default "ctrl lalt c")
  53.         )
  54. )
  55.  
  56. (tooltype (prompt "Écriture du tool-type correspondant à la HOTKEY ...")
  57.           (help)
  58.           (dest "charmap")
  59.           (settooltype "HOTKEY" HOTKEY)
  60. )
  61.  
  62. (copyfiles (prompt ("Copie de CharMap vers %s" DIR) )
  63.            (help @copyfiles-help)
  64.            (source "charmap")
  65.            (dest DIR)
  66.            (infos)
  67. )
  68.  
  69.  
  70. ; ***********************************************************************
  71. ; *                                                                     *
  72. ; * Installation of the catalogs                                        *
  73. ; *                                                                     *
  74. ; ***********************************************************************
  75.  
  76. (if (>= ver 38)
  77.     (
  78.         (set CATALOGS (askoptions (prompt (cat "\nQuel langage doit être installé ? (dans LOCALE:)\n"))
  79.                                   (help)
  80.                                   (choices "Français")
  81.                                   (default 1)
  82.                       )
  83.         )
  84.         (if (BITAND CATALOGS 1)
  85.             (copyfiles (prompt "Copie du catalogue Français...")
  86.                        (help)
  87.                        (source "catalogs/français/CharMap.catalog")
  88.                        (dest   "LOCALE:Catalogs/français")
  89.             )
  90.         )
  91.     )
  92. )
  93.